Remove temp files even if the command fails.
Properly quote files/arguments.
Don't overwrite builtins.