Fix relative directory issue on nix