add to support build-dir command-line option
Merge pull request #5 from typester/build-dir-option

add to support build-dir command-line option