plugin now doesn't fail if right clicked a file instead of a folder