Don't use $ in temp filenames

It breaks things on *nix