Adding a getLastError() method as a stderr equivalent of getLastOutput() to commandexecutor.