Store file in correct directory