[#1807] more generic handling of packages and build directory
[#1805] test suite for s3, first pass