fix for realpath issue on minify with virtual directories