ensure scripts run from correct dir