Changed to using .tmp for tempory files

The reasoning for this is that they can be ignored by git and on
windows I can create them and not delete them (or fail to delete them)