Fix browser and profile check, added bash redirect