Fixed adding relative paths
Added error message when using unknown collection