Fixed change directory and os variable name.