[REF][runbot_prebuild] Add validation of path exists into git function