Fix shader dir crash if folder doesn't exist.