Switch to pwd so the scripts can work more reliably on other OSs