Check if PORTSDIR exists, try to configure it if not