Some minor changes moving the sha1 generation next to the creation of the files they belong to