Fixed browser and profile check, added bash redirect