Don't append / to the end of a file in the extraction message

When importing asingle file, the message will show `file.php/` instead of just `file.php` as it assumes it is a directory.