fixing several issues with docker env

also on 045b03f6314503659c2b86b29c21eb580f0b924d (PR #6)