Moved nested_dir code into ensure => present case
Added some checks