Fix postinstall script according to @tadatuta notations