Move default tmp directory from SCRIPT_DIR/pubkey.d/tmp to KEY_DIR/tmp

Default value of TMP_DIR used to be set as DEFAULT_KEY_DIR/tmp,
so it still points to SCRIPT_DIR/pubkey.d/tmp while KEY_DIR is explicitly specified.