Added sleep() workaround for windows php rename bug