pwd prompt and error catching