getusershell: skip blank lines and comments