changes to make custom program name work

Fix two minor bugs that cause the build to break if you specify a custom program name. 

call mspec with -t and custom program name.
fix spec to check custom program name.