Improved version using clean environment + container environment (requires docker 1.3)