a first stab at partials_dir setting

re #252
backported partials_dir to 3.0