Fixed some build scripts
Items drag'n'dropped in/out of trash gets it's state updated (fixes #371)