replaced pkg_resources with os.path with quick code clenaup

Fixes: https://code.ubuntu-it.org/ubuntu-it-web/www/-/issues/13
1 job for dev-shadmod-231009-2225 in 0 seconds
Status Job ID Name Coverage
  External
passed managetests

00:00:08