Fix code to get the license location correctly.