allow dash-separated package name in mk-user-func
add test
Merge pull request #12 from poga/master

fix 'failed to parse source' in mk-user-func when source contains module with dash-separated name