Fix for yosemite
Shellcheck recommendations