Fix bug in ProgramSource resolution code during image instalation