A little bit late, but i think not everyone has this file. Better is to write a new file to the temp_dir.
Also here normaly in phpbb:
@mkdir($dir, 0777);