Bugfix: sys_get_temp_dir undefined before PHP 5.2.1