Changes suggested by the original author

* Reverted back -Xss512k change (might have reintroduced old bug)
* Using test() instead of search() for regular expressions in ignore array (cleaner and quite possibly faster)