Added function cmdstr to abstract returning the output of a shell command