Add automatic environment variable configuration.

Cluster management scripts can now handle a variety of environment
configurations.
Remove rogue vim swap file from src/util.