Revert "Temporary fix for checking used selector"

This reverts commit 671a41660c40bd15f3c9a767aa772fc1ad0f43b6.
Changed selector string finding method to depend on memory address string position

No more problems with app names containint "-", etc.
Made regex static to improve performance
Made selector checking (and related exception throwing) DEBUG-only
Merge pull request #1 from Syncano/selectorsFix

Selectors fix