Is it on purpose that you invoke a separate shell for that script?