prevent trying to open a directory when clicking in the Rascal explorer