Check for '--profile' before anything else