package: fix regexp to work on OS X