Fixed scenario where <dependencies> was being written twice