simplified temp dir code as sys_get_temp_dir() is always defined (min version is 5.2.4 and the function was added in 5.2.1)
minor #503 simplified temp dir code as sys_get_temp_dir() is always defined (fabpot)

This PR was merged into the 5.2-dev branch.

Discussion
----------

simplified temp dir code as sys_get_temp_dir() is always defined

Commits
-------

d4d2220 simplified temp dir code as sys_get_temp_dir() is always defined (min version is 5.2.4 and the function was added in 5.2.1)