update build script
- switch to call instead of subprocess.check_output
- fix arg parsing to allow optional sources