fix working directory + environment variables

Signed-off-by: Amit Gupta <agupta@pivotallabs.com>