Check PIM redirection properly

Fixes #18