Make sure that `createDirectoryIfMissing` is called for included js files

All responsibility falls on @seliopou :P