Fix ConfigParser.getPreference error + tests

Was getting the following error:

    ReferenceError: a is not defined
        at Object.ConfigParser.getPreference
            (/home/alfred/repos/cordova-cli/src/ConfigParser.js:88:23)