Add prepare task instead of postinstall