Process correct directory. Fixes #321