Fixing problems with subdirectory deployment