fixed build script for Linux, fixed test paths.