only do services restarts if deploy directory exists