4 Adapt maven path search for files and dirs. The "-f" maven param can
5 specify both a directory, in which case it will look for "pom.xml" in the
6 directory, or a specific file. The original version of this search was only
7 compatible with directories that contain a pom.xml file.