rakefile: correctly handle piped input in login task