Fix refind script
Add coreutils stuff for OS X