fix file and directory seperation