Add dir support.

Add support to execute from wherever you want.