Extracted get_file().
If source is copied, now use the correct file rather than the main one.
Removed local file reference.

We will just need the filename.