if statements in Makefile.in have been replaced with find statement
Distribution specific functions have been extracted to outter script
bugfix