Merge pull request #22 from couloum/master

Fixed bugs when $topdir was changed on Debian