Fixed mask problem in _upload_from_command_line function.