Updated script for handling git sources