Add erb ext to diamond.conf and fix variable access deprecation