Replace /bin and /sbin in realpath tests

Now we construct absolute paths from t and lib.