tool_operate: let --create-dirs work for --dump-header as well Add test 3011 to verify Proposed-by: Montg0mery on github Fixes #14941 Closes #14965