Don't hard code the sugar home

Also look for the debug file inside the profile.