Fix reference to undefined product_dir variable.