Respect the prependFiles option in the done and fail callbacks. Fixes #2493