Fixed bug where directories without any attributes were being explicitly added, which caused problems when trying to install a file under a protected system dir.