Completed logic for auto-refresh of modules - git pull