changing working directory for automatic running