RISC-V: Handle multi-lib path correclty for linux