added check for src_file not existing and if it is a directory