Removed trailing slash from .bashrc. Fixed bugs in update scripts.