fix the tests and the `nikola` command outside of sites

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>