This is how it was before, but wouldn't it be better to chmod() first before moving the file in place?