Fix #1045, normalize the profile name to reflect the folder the user is looking in and catch a case where a user could create a profile inside of a profile, which is kinda weird.