Updated dirty checking for deploy script