Correct division by zero when downloading or uploading an emprty file with SCP