Issue 92 - Fix incremental builds when using image internal scripts

This resolves problem described in #92.
Yeah, was reluctant to do it this way, but this is the cleanest possible solution.