Fix --libdir config in rules