Added check for files starting with '.'