Fix for directory-dependent script