Better 'get directory above' technique.