[rundir] organization; use IS_SFX variable instead of sed to determine entry point