build-lily: strip 'origin/' from dirname if present