Get an absolute path for traces in order to bypass possible change-dir operation