Do not exit when mkdir fails due to an already existing directory

Fix running pkgin when compiled with DEBUG