Fix bug in snap helper

Calling snap with no argument or an argument that matched
at the end of multiple alias names broke it dead.
Merge pull request #2 from scizzorz/master

Fix bug in snap helper.