Revert "Rewrite code updating navigation.rb"

This reverts commit a62a51c29bdd356fd9d1f71967e61325943b50e1.
Merge pull request #1862 from cloudsleuth/pull-req-master-7c7f5fbc4bfa11249663d08459068f0f7e531991

https://github.com/crowbar/crowbar/pull/1862

Merged by devtool for cloudsleuth