Secure copy. Copy file to temporary file and rename it after successfully copy