Add checks for local scripts