Added dir option to executable tasks. Fix #12