Work on issue #363. Check is working not only for opening from project
tree, but for usual "Open file" command as well.