refactor code for file find and file paths
Functionality is unchanged, but the way source and target file paths are retrieved is more generalized. This is an intermediary step towards the implementation of the "--delete" option.
Merge branch 'feature/refact_find_source_target_paths' into develop