Issue 92 - Fix incremental builds when using image internal scripts

This resolves problem described in #92.
There's no such TC so far, if you want to I can added it.