Smarter dnames command that does not trip up over underscores etc in container names