Use a more reliable and portable way to get the path of Qt5 plugin dir.