Feature/refact find source target paths

Hi Robin, 
The functionality is unchanged, but the way source and target file paths are retrieved is more generalized. 

This may look like an unnecessary thing to do. However, it is an intermediary step towards the implementation of the "--delete" option, where a number of calls will be made to the subs introduced here.