adjust script resource dir