create directories if not exist in prepublish