Change to a more reliable way of getting current project root directory. Still not too stoked with how this currently works as there could theoretically be more than one root directory.