fix both build scripts to better find the package name without a harmless error - thanks to ponce on LQ