Use GNUInstallDirs to determine most of used variables

Also removed unused vars
Merge pull request #1 from shumski/master

Use GNUInstallDirs to determine most of used variables