Restores valid path build behaviour in upload_to model file field callback.