be more lenient in correct error detection

By being more lenient we are able to detect `Permision denied` in situations where other items are added to the error message that would make this fail the detection and assume it was able to connect.