Fixed rename source directory issue

When extension contains multiple config.m4 files, 
rename source directory will only rename last directory where config.m4 in it not entirely source directory.