Added detect extension name from config{0}.m4 and rename extracted source directory.

Signed-off-by: Rack Lin <racklin@gmail.com>