Fix bug in path detection when ninka.pl called from its own directory.