TODO
inputs/outputs ref created outside runCmd
More powerful variable handling, and more similar to Make's