Fix path to beuser. Fix architecture logic for Solaris.