Fixes #15. Allows a specified directory name to be used