Fixed a case where, if scriptdir is not set, the script path does
contain ///. FreeBSD libc does not like that
Authored by: llagendijk 2013-01-03
Parent: [r138]
Child: [r140]