fixed bug: open the doc dir if running script

the relative directory 'doc' does not exist in 'src', only in root;
before moving the documentation, ot was the other way around, and either
of them did not work.