Check for opt dir