fixed, unix problems with subprocess and temporary files, added version