add PATH to both before_script and script, and change 'cd test'+'make' to 'make check'