remove redundant abspath, bad for urls