Refactor to support a command line format more similar to phonegap local plugin add, avoiding to require the path of the project, it assumes the command runs inside the project, it will fail otherwise