set locate package as attribute

User can use mlocate instead of locate
Merge pull request #3 from byplayer/feature/locate_pkg

set locate package as attribute