I still feel this is too fragile - we will move the python code around soon as vim 7.4 defines standards where it needs to live. But there will always be a plugin/ and a doc/ directory. Please change the code to check for these directories while going up.