The -d option  which must be the first argument if it appears  supplies a directory which is the NetHack playground It overrides the value from NETHACKDIR  HACKDIR  or the directory specified by the game administrator during compilation (usually /usr/games/nethack)