Set PORTDIR for compatibility with tools