Remove unnecessary dependency
Fix abspath on win
Separate file operation functions from main
Fix #4

On Windows, cannot specify a different drive