Fix Util module to work on Windows

Basically there's no `/dev/null` on Windows but instead it's just `nul` and also when command isn't found "Invalid argument" is thrown so we catch `Errno::EINVAL` too