After some digging, I think that the `getProjectPath()` logic could be moved to `setInputDir($path)`. What do you think ?