updated sync pull to only run commands when there are new commands to be run