fixed issue with stripping trailing colons from filenames