fixed reading env files
check that file exists