fix Grep, fix mktemp for linux & osx.