build dir =>path