parse cosmic and uglify option from pkg.spm
add testcase for entry without pkg