Make resolveFile synchronous