updated default pattern access logic to include path separator.