--- nb.orig	Fri Nov 12 23:28:37 2004
+++ nb	Fri Nov 12 23:29:46 2004
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! /usr/bin/env bash
 ############################################################
 #  NanoBlogger 3.0 Copyright 2004 n1xt3r (Kevin R. Wood)   #
 ############################################################
@@ -10,7 +10,7 @@
 VERSION="3.0"
 
 # nanoblogger's install directory.
-BASE_DIR=`dirname $0`
+BASE_DIR='%%PREFIX%%/share/nanoblogger'
 
 # create a semi ISO 8601 formatted timestamp for archives
 # used explicitly, please don't edit unless you know what you're doing.
@@ -985,7 +985,7 @@
 	[ $# -gt 1 ] && argument=$2
 	bad_argument=$1
 	# always load global configs
-	. "$BASE_DIR"/nb.conf
+	. %%PREFIX%%/etc/nb.conf
 	# check for user's .nb.conf in their home directory
 	[ -f "$HOME/.nb.conf" ] && . "$HOME/.nb.conf"
 	case "$1" in
