Altered for non OS specific reading of directories:FIX 0.1