 
   private func runPrecompileCommands() {
     let commands = package.roostfile.precompileCommands
+    var index = 1
 
     for command in commands {
       let task = Task("/bin/sh")
-      task.arguments = ["-c", command]
-
+      let script = "cd \"\(rootDirectory)\"; \(command)"
+
+      println("Running \(roostfile.name) precompile command #\(index)")
+
+      if Flags.Verbose {
+        println(script)
+      }
+
+      task.arguments = ["-c", script]
       task.launchAndWait()
 
       if task.hasAnyOutput() {

      return (options as NSString)
        .componentsSeparatedByCharactersInSet(WhitespaceCharacterSet)
        .map { $0 as! String }
    } else {
      return [String]()
    }
  }

}

class Builder {

  var package: Package
  var rootDirectory: String
  var buildDirectory: String
  var binDirectory: String

