Fixed configuration options and directory creation bug