That is what I argued for too.
You can specify, in the copyright notice, that the scripts are distributed under the GNU GPLv3 (or whatever other free software license you want) and that the remaining of the thesis is distributed under the CC BY-ND 3.0 license.