Fix normpath

Error in normpath causes paths with leading '../../' to be removed.
Example:
    normpath('../../a/b/c') == 'a/b/c'

Fix normpath to preserve leading '../../' in paths.