allow setting work dir and prefix in the environment