fix for war deploys and subdirectories with same name