DBUS-315: read env file before checking the environment variables

Refer DBUS-315