dotenv: fix bug when env file is empty