find short filenames properly