Fix prefix string of echo lines and replace relative paths to absolute paths