Build script updated to generate dependency file