Modified version. Fixed the issue of not loading yml file if yml file has environment variables.