remove directory prefixes for pre-compiled posts