System error loading custom package

Custom is a user defined package. It is present in the directory below. From REPL, using Custom works. A script that uses it also works. If another script uses it at the same time, the following error is encountered.

SystemError: opening file “/.julia/compiled/v1.1/Custom/nW9GT.ji”: No such file or directory

The above exists for sure, but throws SystemError. Is there a workaround?