fix file name for external references