Fixed regular expression for local pkg detection