admindir in settings too + fixes for install and upgrade

Signed-off-by: emanuele <emanuele45@gmail.com>