Check if port directory is correct