Update shell() to work on multiple paths.