Strip out comments when building shell command