Fix use of directory as 3rd argument

Fixes #6