Fix package build scripts on Linux