Fixes https://github.com/puniverse/capsule/issues/40

Fixes #40 for my case, should be a minimal fix not interfering with other cases logic (except for similar simmetric case of absolute dir path, not sure if it happens though)