Properly handle locales with country codes

Fixes #2890.
Let's express this in terms of `website.project_root`, to avoid a dependence on the current working directory.