added cmake version min check for apple to 2.8.12
fixed problem of fetching scripts from source directory instead of build dir