fixed script name to be set if found