Fixed import os for renaming files.