Created by: awaisraad
"yarnpkg --version" command is not valid to check if Yarn exists, or to output its version. Without this, "create-react-app" always uses npm to install dependencies, even if Yarn is present. This fix will return proper result if Yarn was present and whether it should be used to install dependencies.