New function isDirectory() introduced, fixed GET_DIR_AS_ARRAY() (replaces scandir())