Assorted Bugfixes
Fixed the following bugs:
- Checked that rules exist before recursively calling needsToBeBuilt(),
    this previously silently failed.
- Included sys for sys.stderr printing
- Commands are printed after variable substitution, rather than
      before
Merge branch 'master' of github.com:JarekSed/JSONMake