Fixed --remote-name when uploading from stdin.