Modified sync script to allow arbitrary repo location.