make it work correctly if it is invoked via a symlink