moved startup dir out of endlocal - little bug