allow null second param in createPreloadedFile|createDataFile so that file packager does not need PATH, and works through closure