Fix inspector when the watch expression was specified as directory

fixes #213