changed write-assets to only use digest path if configured