add the compact mode

Add the `compact` option which srtips useless `_path` suffix in path helpers