Fix cmd/configProject to work in WAR env.

#19
Fix indentation to match rest of file.
Use Path class, instead of string manipulation.

#19
Calculate resource path with servlet context in mind.

#19