Rails 3.1 does not have the uuid method. Fall back to the env variable