Update PinkPill.pm

Lots of tweaks through out the file to try to use the Perl File library as it provides a lot of cross platform support already.