Fix problem in TSystem::CompileMacro (ROOT-8133)
Fix problem in TSystem::CompileMacro (ROOT-8133)

Correctly handle file without extension.
Was calling TString::Replace method with invalid arguments

olifre/root,olifre/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,olifre/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root