Moved check for file_exists outside of blackmagic loop
Dotenv-rw changes