found typo in path export and exiting earlier if env var setup fails