(frontend/cli) Fix output folder when generating IR files