Fix inspector when the watch expression was specified as directory

this fixes #213

@thibaudgg Can you take a look? :smile: