resolve correct paths when running in global context