mount command on windows returns an error instead of nil and adjusted unix-only code