Fix for temp directories on Mac OS

e.g. /var/folders/vA/vAkZKXQ9EpaqHXTML3ThnU+++TI/-Tmp-/1401821747559-0

- /var is a symlink to /private/var
- paths can have '+' in them

Also improved logging.