Allow specifying working directory

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>