ups, fix exchanged arguments
fix an issue with conflicting $this->pkg in trate and class
allow randomly generated tmp dir name
fix the regex for <ext>@<version> format