Establishing directories correctly