Fix install target to create the destination directories if they don't exist.

Further, make these directories configurable in accordance with the GNU
directory variables:
https://www.gnu.org/software/make/manual/html_node/Directory-Variables.html