fixed get_relative_path to work with new static server