Attempt to rely only on qt to figure out the paths.