added conditional path resolution for bare paths