restore the .sh suffix in the tmp files