fix for kernel3.5
add mathetmatics.h to fix compile
add unistd.h to fix compile
fix typos
look for script in installed bath, not build location