improve docker inspect

- the output is now always valid, no more trailling `,`
- fixes status code