Catch possible exception for os.makedirs.
Don't throw exception when dir exists.
update verification code