Rewrite 'env' namespace for work with latest layers library.
Load 'env' namespace.