Fixed ->getRealPath() not taking prefix into account