CLI: Use the right base
when loading files from stdin
#14522
+30
−2
Merged