fixed a bug in the compilation of assets from a shared directory