parser: fix filter slashes for link targets

Merged John Johansen requested to merge jjohansen/apparmor:fix-link-target into master

The parser is failing to properly filter the slashes in the link name after variable expansion. Causing match failures when multiple slashes occur.

Fixes: #153 (closed) Signed-off-by: John Johansen john.johansen@canonical.com