Conditionally set package_name

If thor version is less than 0.18 don't set package_name