A bit of refactor

Make components
Remove CP references
Use sys independent path join
Use sys.path to detect binaries

Signed-off-by: Prasanna Santhanam <tsp@apache.org>