fix: cleaning up base path directory logic to make a little less prone to breaking
fix: cleaning up base path directory logic to make a little less prone to breaking

notacouch/patternlab-php-core,pattern-lab/patternlab-php-core,sghoweri/patternlab-php-core