Fix setting expanded ddir (#136)