Add checks for OSX

This adds some checks for OSX compatibility. These commands requires 'coreutils' to be installed.