add to support build-dir command-line option

because I need this!