Use $libdir instead of assuming $remote_tmpdir/libsrc.