Fix require path.
Add env-variable's validation