Updated config writes to use erb style templates

die heredoc, die!