Fix several places that make use of profiles

because gcr_profiles() returns a list of profiles, not a hash