Cleanup in the way statman is calle.d
Fixed bug in install script that tried to chmod on non existing folders for new installs.