libDir should be File object, not a string