enhanced update-scripts for passing application directory