Cross-platform fixes

This fixes two issues:

* Commented lines in the `benchmarks.lst` file were not being handled properly.
* On OSX the `sed` command would fail because OSX uses the `-E` option instead of `-r`