Fixed problem with worddir and ruledir path.