Fixed rename source directory issue when detected source directory not root directory of extracted directory.

Signed-off-by: Rack Lin <racklin@gmail.com>
Merge pull request #407 from racklin/bugfix/rename_source_dir

Fixed rename source directory issue