Fix patterns to detect entry files on get-entry-files function