write .bo and .ba files to $(project_dir)/obj
eliminated unnecessary os.chdir