fixes log dir
chmods the bin