fix rebuildstaging edge-case having a read-only URL