Remove some hardcodings and deprecations.

Hi!

I removed some deprecations that generates warnings in your build system.

I also let an external script handle the printing of install directories so that both standard and non-standard directories can easily be printed without any special tests.

Don't mind the commit removing all printing of install directories. It was reverted and then replaced by the last one.

Regards,
Karl