fixing problems with subdirectory deployment