Strip directory names from output file name.