change output to not use magic replacement as it does not work on every platform (apparently)