Fix classPath URL
Handle flags options