Add check in git pull for when in detached head state and lowered the timeout slightly