fix lib to be more general (do not use intermediate variables like $script_dir)
working with Jenkins!
using saved image - a bit faster server build