repopick: Check if directory exists before entering cherrypick loop

https://github.com/CyanogenMod/hudson/commit/514ce18fc7715080ee0bb8c03b010cab4664a6fb