renamed library/common to library/script
moved target viriable checking to library/common