fixed two bugs in the specfile parser