Fixed regex to actually follow APT requirements

Previous implementation would overwrite the file name and
potentially include characters that would cause apt to ignore
the pref file
Merge pull request #298 from frconil/fix-apt-pin-regex

Fixed regex to follow APT requirements