fix dirname

Change-Id: I2dfa65e9c5f10da6dcc2fcdb7dd70de8f02535fb