cleanup BuildProj code, add BuildCmd.py for command line buiding