Convert to abspath to ensure valid basename

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Refactor CharmCache for better encapsulation

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