Creating module to isolate method buildCommad of mspec.js