Use ensure_output_path for non-rails use