Don't use $ in temp filenames

It breaks things on *nix
Merge pull request #17 from domenic/patch-1

Don't use $ in temp filenames