swap out spawnSync lib
fallback to `origin/master` when master is not defined