Since were having issues on windows for too many patch file names, figured better use -R instead. Also added $basedir back