Make open() temp-directory insensitive