fix --configdir option parse issue

Change-Id: If111f4e1b9c99179a097168db627127c645b7132