changes of directory using relative paths is back firing
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