Added isDirectory to tachyon file, added directory check in mkdir tests