Fix unecessary deletion of dependency file