fixes as per the comments in getnikola pull request

via getnikola/plugins#13