[#5332] Miscellaneous code cleanup

- Rename project name regex to something logical
- Update make_safe_path_portion() to work in strict and relaxed modes

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>
10 files changed