Fix inspector when the watch expression was specified as directory

fixes #213
Merge pull request #214 from chocoby/fix/inspector

Fix inspector when the watch expression was specified as directory