Check script hash and compile it if hash is changed