Fix quoting of shell parameters used in remote_checksum and add integration test to detect the error Fixes #682