Check PIM redirection properly

Fixes #18
Merge pull request #19 from PhrozenByte/fix/PimRedirect

Check PIM redirection properly