Created tmp_dir to allow custom temp directory. Shared web host with jailed access may not be able to execute scripts in /tmp directory.

I had to change this since I had issues executing scripts from tmp directory for my shared host.