Make file spec expansion function public after all

See #1274