Fixed a command typo and added a few "cd" commands

The maven tar file was misspelled in the second command and I added 
some "cd ~" commands at the end of several blocks so you're not left
in the middle of a distribution's directory tree.