Add convenience this.promise_dirname variable, with acceptance test.
Merge pull request #969 from tzz/feature/promise_dirname

Add convenience this.promise_dirname variable, with acceptance test.