Error handling for nix and WIndows on geBin method

Like you asked, here's the error handling for both *nix and windows.