fix 'window to front' for plain filenames