updated build script for joydetect