updated to support Mac OS 

Still testing on other Linux variations...