Fixed incorrect detection of CLI based called so that error message about missing host parameter is displayed when maintenance script incorrectly called. #268