Added check for ./. in filename