fixing build scripts on linux