Create bundle directory before attempting to write to it.