fixing paths. ~ doesn't work via sudo on ubuntu?