Pkg fixes

trying to join all efforts for solving the pkg issues.

still working on a docker based test
yes, because my tests showed that distribute < 0.6.30 is responsible for the "not a directory" issue