src: TODO handle ../ and / directories