put version info in extra file

this allows to handle that automatically. Also added a date.
only work with scad files from common dir when exporting

I had a few problems caused by temporary files that got included
accidentally.
better error messages