fixed rpm build (bin -> lib, filemode for log directory 0777)