Totally rewrite path helper

Feel so good