Add .gitignore for foreman .env file
Fix a couple runtime errors