fix for #5, added setting working directory