moved command line argument processing to a separate script so it can be shared added --use-system-master to allow user to use master branch instead of detected master