Media folder: regenerate the path before checking it has changed
Bugfix with double // for virtual path in the root