Show capture error message
Change working directory and show error message when script error