Simplified code and couple of fixes

Hello cbeav,

please consider pulling these fixes. 

Fixed
- cd /
- Completions for ..

Made it work with MapR as well.

Thanks,

Gera