Fix typo in the header.
Indent using spaces.
Simplified preference creation.
Paths are relative to Textpattern installation location.