Use the `build.properties` in almost all commands if `input-dir` is available.
Merge pull request #378 from marcj/master

Use the `build.properties` in almost all commands if `input-dir` is available.