Bug fix caused by fs_basepath and fs_homepath with a leading slash