Issue 92 - Fix incremental builds when using image internal scripts

This resolves problem described in #92.