added sudo in getFilenames.py