Add check for KSP_DIR
Don't set KSP_DIR inside Makefile
Merge branch 'master' into feature/refactor-reference-frames