Support local directory with custom patches