fixed current folder reference in tests
download packages using https

Or, in general, the same protocol as the registry;
this is what npm seem to be doing.

See issue #166 for details.