Check the paths added into environment variables.
Move logging configuration code to make the script self-contained.