add path.resolve to fix #11
add path.resolve to fix #11