Set PORTDIR for backward compatibility with various tools