Added dependency between tasks to ensure file gets created before written to