atomic writes and relatives paths in PHP