Fix Get versions to create application environment + check on application rights on search version