make local directory when needed