bashrc: improve Lua support

Remove duplicates and use a more robust way to prepend /usr/local/ in
Lua paths. Furthermore, do this only when relevant, i.e. when $LUA is
executable.
bashrc: minor improvements