fix uploads without ctime for old versions of php