Added directory/file existense verification