Fixed plugin to work with phonegap command line interface