Adapted newpath.m to new folder structure

Signed-off-by: Rickard Jansson <rickard.u.jansson@gmail.com>