usage: envdir dir child