Return True if the chroot environment is present.

def exist(name):
    '''
    Return True if the chroot environment is present.
    '''
    dev = os.path.join(name, 'dev')
    proc = os.path.join(name, 'proc')
    return all(os.path.isdir(i) for i in (name, dev, proc))