directory detection should now work on BSDs, added AIX alternate path