Add share/polkit-1/rules.d.
  Use absolute paths for mkdir/chmod/chown in install script.

Taken from MC.