The subdir variable not defined so use product-version instead
Make the maximum number of open file descriptors configurable.