Fixed an issue with deleted/removed files

Also added --perf flag by default
Merge pull request #1460 from psav/fix_removed_files_add_perf

Fixed an issue with deleted/removed files