lib: accept regexp as path
test: accept regexp as path
Release 0.3.0