Fix generating script targets without generate properties