removed dirname call
removed calling the shell explicitly

This was a hold over from previous attempts at reattach-namespace