Update docker check to be less error prone on OSX

Uses the stderr redirect and runs the check not in sudo mode. sudo should not be needed to run docker.