[backend] support download of build code with Build/ and emulator/ subdirectories