Fixed a bug with dirs during install