save_heredoc_in creates path as needed