contructs the sudo command for a given command and options