added postinstall script for optionalDependencies