Fix a local variable name
Skip non-regular files such as symbolic link