Remove trailing : from filename if appropriate

Useful for pasting filenames from grep