container: fix .dockerenv stat check