Some version of egrep does not have -o option, use gawk for processing instead
put awk script into a function and use feature detection for egrep -o option
- add egrep -v "^$SPACE$" to eat up whitespace to fix the test failure issue
- adjust GREP selection by using if...then...else style
output correct number of tests if ls -l isn't supported
this should make it work on windows
0.1.7