Fix three issues

1. Could not compile, test and install (locally) without providing sonatype credentials
2. Plugin doesn't work if path contains spaces
3. Plugin doesn't work with subprojects