bashrc: improve split and join functions