Update the installer
Fix issues if didn't has permission to create dir
Add unittest [WIP]