Installer improvements

Just some improvements.
Also fixed error which was copied over from a controller, need for $ci-object in a library.