appdirs: Simplify implementation