remove unused path require
add support for comments with leading #
add support for dashes in process name