Remove spaces from dirnames