minor bug-fixes for command line build interface