Fix #4 - Allow script to detect other keys types

Fix https://github.com/hashbang/hashbang.sh/issues/4