escaped quotes in deletion script for safety and added explicit directory change before remove commands