Fixes dokuwiki page file opening logic
Lots of bugfixes after first run