removed dos linefeed
extended preinstall script with cache and log dir create