Minor refactoring of the bob_helpers (file/dir copy) functions