Update lib/filestorage/common.php

Added function to clean a path