Normalize capitalization of getFilename() option and  rename()