Checking extention to avoid renaming random appearing hidden files.