Add check for . and .. and skip