Do the .bash_profile_local thing after loading RVM, so that it can mess with RVM if necessary.
Use smex only in emacs 24, because it seems to use something that depends on at least emacs 24.3.
Try turning on zenburn again after doing the term colors, as it might have increased the color count.