Declared program and fixed syntax error
Set & use program name in condition