Apparently not all msys2 installations use the same libreadline dependencies, so only try to include the one that's present.