helper.real_path: Support %library.