forbid alias names with path separator, fix #2386
upgrading alias code, add missing exit for #2386