source config alongside env to avoid dirname problems
fix variables for version lookup