Create base directory if it does not exist