Add possibility to get the buyscripts to clipboard
Fix bug in buyscript generating script