is this change actually needed?  It's probably more correct to use dir, rather than invoking the shell, but is that related to this fix?