Refactored SLRE command line utility

This will return an error status if the last line doesn't match.
Probably it should return error only if there are no matching lines.