fix cli argv handling
use __dirname
complete and awesome overhaul, powered by mori