 
 
   # TODO: Test
-  _globPackages: (app,packages)-> # Use glob to get packages that match the packages arg
+  _globPackages: (packages)-> # Use glob to get packages that match the packages arg
     log.debug "Meteor._globPackages()",arguments
-    expect(app,"@app should be a string").to.be.a "string"
     expect(packages,"@packages should be and array").to.be.an "array"
 
+    pkgsFolder = process.cwd() + '/packages'
+
+    globOpts = {
+      cwd: pkgsFolder
+    }
+
     matchedPackages = []
 
-    appPath = path.resolve(app)
-    meteorPath = "#{appPath}/.meteor"
-
-    if fs.existsSync(meteorPath)
-      cwd = "#{appPath}/packages"
-    else
-      cwd = appPath
-
-    globOpts = {
-      cwd: cwd
-    }
-    packages.forEach (globPkg)=>
-      globedPackages = glob.sync(globPkg, globOpts)
-      if globedPackages.length > 0
-        globedPackages.forEach (pkg)->
-          matchedPackages.push(pkg)
-####
-#      else
-#        log.warn "No packages matching #{packages} have been found."
-#        if app is "."
-#          log.warn "Make sure you are running spacejam from a meteor app folder. If not, use --app to specify app folder."
-####
+    packages.forEach (pkgArg)=>
+      if pkgArg.indexOf(':') > 0
+        # It's a package name in the new format, we'll add it as is
+        # TODO: Support globs for this too, by looking up package names inside package.js
+        matchedPackages.push(pkgArg)
+      else if pkgArg.indexOf('/') >= 0
+        # It's a path to a package, we'll add it as is too
+        # TODO: Support globs for this too
+        matchedPackages.push(pkgArg)
+      else
+        # It's a package name, let's find matching package names, if it includes wildcards
+        globedPackages = glob.sync(pkgArg, globOpts)
+        if globedPackages.length > 0
+          globedPackages.forEach (pkg)->
+            matchedPackages.push(pkg)
+        else
+          log.warn "Warning: No packages matching #{pkgArg} have been found. Will add it to the meteor command line anyway, in case it's in PACKAGE_DIRS."
+          # TODO: Support globs in PACKAGE_DIRS too.
+          matchedPackages.push(pkgArg)
 
     return matchedPackages
 

    env.MONGO_URL = @opts["mongo-url"] if @opts["mongo-url"]

    options = {
      cwd: @opts["app"],
      env: env,
      detached:false
    }

      "test-packages"
    ]
    args.push(_testPackages) if _testPackages
    args.push("--production") if @opts.production
    args.push(["--settings", @opts.settings]) if @opts.settings
    args.push(["--release", @opts.release]) if @opts.release

    # Remove undefined values from args
    args = _.without(args,undefined)
