Refactor and also remove unused stuff
Add and use path_append, path_prepend, path_remove

They are beautiful!