Fix up build script

Allow user to select device to build.