couple more fixes to rails::write_secrets