modified project directory detection code to use the Java 1.7 Path API, per recommendation from Mihai