utils: Fix hidden path processing in parse_external_definition
str.lstrip takes a list of chars to left strip and do not left strip a string so if a path starts with a '.' it was erroneously removed.
Related to #611
Depends on !124 (closed)
Migrated from D7129 (view on Phabricator)