"ENDING" should be "EXT"

"-tmp" should be ".tmp"