fix change dir in the libpsibuild.sh script