Make blib/arch, to satisfy blib.pm

Probably this should be fixed blib.pm instead
Write correct meta file for tests
Added sharedir support