Loading environment config before libs

Fixes #18