Added support for later versions of OS X

Previous check does not work via SSH. Using full path.