improve resolving scripts path in db
Merge pull request #2149 from wayneeseguin/bugfix/github_issue_2149

rvm db doesn't respect autolibs=read-fail