Fixed behaviour for empty folders
Added licence