[fix] don't use external file if not in a package