added check for ear directory by URL in FileUtils with comments